import request from '@/utils/request'

// 查询试题类别列表
export function listType(query) {
  return request({
    url: '/business/questionType/list',
    method: 'get',
    params: query
  })
}

// 查询试题类别详细
export function getType(id) {
  return request({
    url: '/business/questionType/' + id,
    method: 'get'
  })
}

// 新增试题类别
export function addType(data) {
  return request({
    url: '/business/questionType',
    method: 'post',
    data: data
  })
}

// 修改试题类别
export function updateType(data) {
  return request({
    url: '/business/questionType',
    method: 'put',
    data: data
  })
}

// 删除试题类别
export function delType(id) {
  return request({
    url: '/business/questionType/' + id,
    method: 'delete'
  })
}

export function typeTreeSelect() {
  return request({
    url: '/business/questionType/typeTree',
    method: 'get'
  })
}




